
<table style="margin-top:10px">
   <tr>
     <th width="40">序号</th>
	 <th width="100">产品</th>
	 <th>工件</th>
	 <th>类型</th>
	 <th width="100">完成日期</th>
	 <th>金额</th>
	 <th>备注</th>   
   </tr>
   {[foreach name=outer key=key item=item from=$result.item]}
   {[assign var="no" value="`$key+1`"]}
   <tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
     <td>{[$no]}</td>
	 <td>{[$item.mold_t]}</td>
	 <td>{[$item.name]}</td>
     <td>{[$item.type]}</td>
     <td>{[$item.date]}</td>
     <td>{[$item.amount]}</td>
     <td id="print_content_{[$item.id]}">{[$item.content]}</td>  
   </tr>
   {[/foreach]}
   <tr onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
     <td colspan="5" align="right">合计：</td>
     <td width="80" align="center">{[$result.amount]}</td> 
     <td></td> 
   </tr>
</table>